﻿using FreeSql.DataAnnotations;
using Jumei.Common.BaseModel;
using Jumei.Model.Business.MemberManage;
using System;

namespace Jumei.Model.Business.GoodsManage
{
    /// <summary>
    /// 商商品咨询表
    /// </summary>
    [Table(Name = "gd_goods_consult")]
    public class GoodsConsultEntity : EntityFull, ITenant
    {
        /// <summary>
        /// 租户Id
        /// </summary>
        [Column(Position = -10)]
        public long? TenantId { get; set; }

        /// <summary>
        /// 商品ID
        /// </summary>
        public long GoodsId { get; set; }

        public GoodsEntity Goods { get; set; }

        /// <summary>
        /// 咨询人ID
        /// </summary>
        public long MemberId { get; set; }

        public MemberEntity Member { get; set; }

        /// <summary>
        /// 咨询类型
        /// </summary>
        public int ConsultType { get; set; }

        /// <summary>
        /// 咨询内容
        /// </summary>
        [Column(StringLength = 500)]
        public string ConsultContent { get; set; }

        /// <summary>
        /// 商家回复内容
        /// </summary>
        [Column(StringLength = 255)]
        public string Reply { get; set; }

        /// <summary>
        /// 回复时间
        /// </summary>
        public DateTime? ReplyTime { get; set; }

        /// <summary>
        /// 是否显示
        /// </summary>
        public bool IsShow { get; set; }
    }
}
